﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.SupplierVMs
{
    public partial class SupplierTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Supplier._SupplierCode")]
        public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.SupplierCode);
        [Display(Name = "_Model._Supplier._SupplierName")]
        public ExcelPropety SupplierName_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.SupplierName);
        [Display(Name = "_Model._Supplier._ContactPerson")]
        public ExcelPropety ContactPerson_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.ContactPerson);
        [Display(Name = "_Model._Supplier._PhoneNumber")]
        public ExcelPropety PhoneNumber_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.PhoneNumber);
        [Display(Name = "_Model._Supplier._Email")]
        public ExcelPropety Email_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.Email);
        [Display(Name = "_Model._Supplier._Faxing")]
        public ExcelPropety Faxing_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.Faxing);
        [Display(Name = "_Model._Supplier._BeginPay")]
        public ExcelPropety BeginPay_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.BeginPay);
        [Display(Name = "_Model._Supplier._EndPay")]
        public ExcelPropety EndPay_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.EndPay);
        [Display(Name = "_Model._Supplier._TaxtRate")]
        public ExcelPropety TaxtRate_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.TaxtRate);
        [Display(Name = "_Model._Supplier._Address")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.Address);
        [Display(Name = "_Model._Supplier._Bank")]
        public ExcelPropety Bank_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.Bank);
        [Display(Name = "_Model._Supplier._TaxpayerNumber")]
        public ExcelPropety TaxpayerNumber_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.TaxpayerNumber);
        [Display(Name = "_Model._Supplier._BankAccount")]
        public ExcelPropety BankAccount_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.BankAccount);
        [Display(Name = "_Model._Supplier._LandlinePhone")]
        public ExcelPropety LandlinePhone_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.LandlinePhone);
        [Display(Name = "_Model._Supplier._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.Remark);
        //[Display(Name = "_Model._Supplier._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.CreateTime, true);
        //[Display(Name = "_Model._Supplier._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._Supplier._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.CreateBy);
        //[Display(Name = "_Model._Supplier._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.UpdateBy);
        //[Display(Name = "_Model._Supplier._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.IsValid);
        //[Display(Name = "_Model._Supplier._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Supplier>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class SupplierImportVM : BaseImportVM<SupplierTemplateVM, Supplier>
    {
            //import

    }

}